import { defineUserConfig } from 'vuepress'
import type { DefaultThemeOptions } from 'vuepress'

export default defineUserConfig<DefaultThemeOptions>({
  lang: 'zh-CN',
  title: '音lè',
  description: 'road to strong',

  themeConfig: {
    navbar: [
      { text: "javaScript", link: "/javaScript/" },
      { text: "经验", link: "/experience/browser.html" },
      { text: "网络", link: "/network/protocol.html" },
      { text: "linux服务器", link: "/server/" },
      { text: "常用工具", link: "/tools/" },
    ],
    sidebar: {
      "/": [
        "index.md",
      ],
      "/javaScript/": [
        {
          text: "javaScript",
          isGroup: true,
          children: [
            "/javaScript/index.md",
            "/javaScript/crossDomain.md",
            "/javaScript/design.md",
            "/javaScript/video.md",
            "/javaScript/frame.md",
            "/javaScript/typeScript.md",
          ]
        }
      ],
      "/experience/": [
        {
          text: "经验之谈", isGroup: true, children: [
            "/experience/browser.md",
            "/experience/compatible.md",
            "/experience/crack.md",
            "/experience/css.md",
            "/experience/env.md",
            "/experience/operation.md",
            "/experience/performance.md",
          ]
        }
      ],
      "/network/": [
        {
          text: "网络",
          isGroup: true,
          children: [
            "/network/index.md",
            "/network/protocol.md"
          ]
        },
      ],
      "/server/": [
        "/server/index.md"
      ],
      "/tools/": [
        {
          text: "常用工具",
          isGroup: true,
          children: [
            "/tools/index.md",
            "/tools/markdown.md"
          ]
        }
      ]
    }
  }
})